package com.gqzdev.bean;

import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author tanghailan
 * @create 2021年09月01日 22:21
 */
@Component
//容器应该给Cat再创建一个实例
@Scope(scopeName = ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class Cat {

	private String name;

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}
}
